package st.business.tepth.business.user.busnumber;

import java.util.List;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.BusNumberBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-03-05 17:24
 */

public interface BusNumberContract {
    interface View extends BaseView {
        void showBusList(List<BusNumberBean> list);
    }

    interface Model extends BaseModel {
        Disposable getBusList(int id,
                              String token,
                              OnDataConvertListener<List<BusNumberBean>> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getBusList(int locationId, String token);
    }
}
